package org.grottarossa.template.drivers.components;

import java.math.BigDecimal;

import org.grottarossa.template.data.pojo.table.Record;
import org.grottarossa.template.drivers.components.tokens.CaseManagementId;

import org.grottarossa.template.drivers.DriverException;

public interface RecordManagement {
	//metodi per i casefolder
	//DataType getDataType(String sDataType);
	public Record getCaseObject(CaseManagementId caseFolderID) throws DriverException;
	public String getCaseObjectLayout(CaseManagementId caseFolderID) throws DriverException;
	public void updateCaseObject(CaseManagementId caseFolderID,Record newRecord) throws DriverException;
	CaseManagementId createCaseObject(String cfTemplateName,Record newRecord)throws DriverException;

	//metodi per i formdata
	public void insertRecord(Record record, String sTemplateName) throws DriverException;
	public void updateRecord(Record record, String sTemplate, BigDecimal rowId) throws DriverException;
	public Record getRecord(String sTemplateName, Integer templateId, BigDecimal rowId);
	public void deleteRecord(Integer templateId, BigDecimal rowId);
}
